package service;

import model.Role;

import java.util.List;

public interface RoleService {
    List<Role> getRole();

    List<Role> getAllRole(int pageIndex, int pageSize);

    int total();

    int insertRole(String rolename, String state, String[] ids);

    Role getRoleById(int id);

    int update(int roleid, String rolename, String state, String[] ids);

    int delete(int roleid);
}
